package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 存储柜管理对象 p_cabinet
 * 
 * @author ruoyi
 * @date 2024-12-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("p_cabinet")
public class PCabinet extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 主键 */
    @TableId
    private Long id;

    /** 库房ID */
    @Excel(name = "库房ID")
    private Long wareHouseId;

    /** 库房名称 */
    @Excel(name = "库房名称")
    private String warehouseName;

    /** 存储柜编号 */
    @Excel(name = "存储柜编号")
    private String code;

    /** 存储柜名称 */
    @Excel(name = "存储柜名称")
    private String cabinetName;

    /** 层数 */
    @Excel(name = "层数")
    private Long layer;

    /** 格子编号 */
    @Excel(name = "格子编号")
    private Long boxNo;
    /** ip地址 */
    @Excel(name = "mac地址")
    private String mac;
    /** ip地址 */
    @Excel(name = "ip地址")
    private String cabinetIp;

    /** 端口号 */
    @Excel(name = "端口号")
    private int cabinetPort;

    /** 端口号 */
    @Excel(name = "设备版本")
    private String deviceVersion;

    @TableField(exist = false)
    List<PProduct> product;
}
